import { flatbuffers } from "flatbuffers";
import { Flat } from "./scalar";
export default function write(): Uint8Array {
  const builder = new flatbuffers.Builder(1024);
  Flat.Scalar.startScalar(builder);
  Flat.Scalar.addA(builder, 3);
  const table = Flat.Scalar.endScalar(builder);

  builder.finish(table);
  const bytes = builder.asUint8Array();
  console.log(bytes);
  return bytes;
}
